Gantry Router
with Centroid M400 Control

Aux Keys

Release tool from spindle not used Dust Collector On/Off
not used not used not used
Work Light On/Off (optional) not used not used

Custom M Functions

M10 Clamp tool in spindle
M11 Unclamp tool in spindle
M21 Pick up new tool (used by M6 procedure)
M22 Put away current tool (used by M6 procedure)
M23 Measure current tool (if optional tool detector installed)
M24 Measure Z Reference (if optional tool detector installed)
M70 Dust Collector On
M71 Dust Collector Off
M88 View current value of variable #159 (tool in spindle)
M89 Change current value of variable #159 (tool in spindle)

Parameters, Variables, Coordinate Systems and Return Points

Machine Parameters

Parameter Typical value Meaning
6 1 Indicates that the machine has an automatic tool changer.
17 4 Return point number for fixed tool detector (optional)
161 12 Number of tool positions in tool rack
175 5.0 Time (in minutes) to continue to run spindle chiller after spindle stops.
176 500.0 Time (in milliseconds) to allow low air pressure during M6, before triggering 9041 Fault.
900 1 Indicates that one PLC expansion board is installed.
901 1 Indicates that a spindle chiller is installed.
942 0.000 Z Reference for tool measurement (distance down from home to tool pad with Reference Tool)
950 ?? X axis position for first tool rack pocket (T1 position)
951 ?? Y axis position for first tool rack pocket (T1 position)
952 ?? X axis spacing between tool rack pockets
953 ?? Y axis spacing between tool rack pockets
954 -?? Z distance (down from home) to clearance level above rack.
This is the "fly-over" level where an empty spindle will
clear the tapers of any tool holders in the rack.
955 -?? Z distance (down from home) to engage tools in rack.
This is the level to clamp and unclamp tools.

CNC Variables

Variable Typical value Meaning
159 0 - 12 Tool number currently in spindle.
0 indicates spindle is empty.

Coordinate Systems and Return Points

Location Use
Return Point #4
(G30 P4)
Spindle aligned over tool touch pad (tool-measuring start point)

Errors and Faults

The PLC program can generate the following error and fault messages, in addition to those listed in the Centroid operator's manual:

"8081 Close tool clamp before starting spindle!"

You attempted to start the spindle, but the tool clamp is open.

Close the clamp, or load a tool as needed with M6, then try again.

References:

PLC INP21:	Tool-clamped switch state: Green = 1 = tool clamped; Red = 0 = tool not clamped
PLC INP22:	Tool-unclamped switch state: Green = 1 = tool unclamped; Red = 0 = tool not unclamped
PLC OUT22:	Tool-unclamp solenoid state: Green = 1 = unclamp tool; Red = 0 = idle
Schematic:	Lines ??

"9041 Air Pressure Low!"

You attempted to run a tool change (M6), but the air pressure was not adequate, or dipped low during the tool change.

References:

PLC INP18:	Air Pressure switch state: Green = 1 = pressure okay; Red = 0 = low or no pressure
Schematic:	Line ??

Notes

Units of Measure for M21, M22 and 950-series parameters

The M21 and M22 macros contain G20 (or G21, if edited) codes, to ensure that the tool-rack moves are made in the same system of units that the 950-series parameters were set with. This is inches, unless the macros are edited to specify G21 instead.

The M21 and M22 macros will save and restore the current working units (system variable #4006), so that they will not conflict with whatever units the user has selected.

While the macros could use system variable #25009 to select the default machine units, and assume that the 950-series parameters were stored in default machine units, this would be a bad idea. It is too easy for the operator to change default machine units, and if he did so, the 950-series parameters would not be automatically recalculated, and the tool changer operations would no longer work.

Work Envelope

The user can set up the work envelope limits to exclude the tool rack, and can put G22 codes in their part programs after each tool change.

The M6, M23 and M24 macros include a G23 code, to automatically cancel the work envelope limits, allowing access to the tool rack and tool detector.

Tool Detector

If a TT1, TT1B, TT2, or similar device is permanently installed on the machine, then the M23 macro can be used to automatically measure tools during a cycle.

The M23 macro depends on a "Z Reference" value stored in Parameter 942. This means the same thing as Z Reference in the Tool Offset Library, but is set separately.

This is necessary because we want to be able to measure Z Reference automatically (using M24), but the Z Reference system variable (#24103) is read-only.

Set Parameter 942 equal to the distance down, from the Z axis machine zero, to where the Reference Tool trips the tool detector. If there is no Reference Tool, and tool height offsets are to be measured down from machine zero, then set Parameter 942 = 0.0.

Reference Return Point #4 (G30 P4) is used to locate the tool detector. Set the X and Y coordinates of return point #4 to the location of the detector, in Machine coordinates. Leave the Z coordinate at 0.0, or set it at a minimum height that will allow even the longest tool to clear all obstacles on the way to the tool detector. Set Parameter 17 = 4.0.